<template>
	<view>
		<search-bar @click="handleSearch"></search-bar>
		<index-swiper></index-swiper>
		<course-type-list title="精品课程" type="boutique"></course-type-list>
		<subject-row></subject-row>
		<course-type-list title="免费课程" type="free"></course-type-list>
	</view>
</template>

<script>
	import SearchBar from '../../components/search/search-bar.vue'
	import IndexSwiper from './components/swiper.vue'
	import CourseTypeList from './components/course-type-list.vue'
	import SubjectRow from './components/subject-row.vue'
	export default {
		components: {
			SearchBar,
			IndexSwiper,
			CourseTypeList,
			SubjectRow
		},
		data() {
			return {}
		},
		onLoad() {

		},
		methods: {
			handleSearch() {
				uni.navigateTo({
					url: "/pages/search/search"
				})
			}
		}
	}
</script>

<style>

</style>
